package com.yl.chainStore.mapper.company

import com.yl.chainStore.entity.company.SickCustomerAccessLogModel
import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.yl.chainStore.pojo.vo.company.SickCustomerAccessLogModelSelectVo
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cxw
 * @since 2022-05-17
 */
@Mapper
interface SickCustomerAccessLogModelMapper : BaseMapper<SickCustomerAccessLogModel>{

    /**
     * 分页查询
     */
    fun selectPageByVo(@Param("page")page: Page<SickCustomerAccessLogModel>,@Param("vo") vo: SickCustomerAccessLogModelSelectVo):Page<SickCustomerAccessLogModel>

    /**
     * 列表查询
     */
    fun selectListByVo(@Param("vo") vo: SickCustomerAccessLogModelSelectVo):List<SickCustomerAccessLogModel>

    /**
     * 获取最后的排序号码
     */
    fun getLastOrderNum(@Param("subCompanyId")subCompanyId:Long):Int?

}
